﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Composite_controls
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            searchBox1.lineEdit.Text = "战神孙悟空";

            //添加事件处理
            searchBox1.pictureBox1.Click += new EventHandler(searchBox1_SearchEvent);
        }

        private void searchBox1_SearchEvent(object sender, EventArgs e)
        {
            MessageBox.Show("开始搜索..." + searchBox1.lineEdit.Text);
        }
    }
}
